<?php

namespace app\modules\admin;

use yii\helpers\Url;

/**
 * admin module definition class
 */
class Module extends \yii\base\Module
{
    /**
     * @inheritdoc
     */
    public $controllerNamespace = 'app\modules\admin\controllers';

    public $layout = 'vuetify';
    /**
     * @inheritdoc
     */
    public function init()
    {
        parent::init();
        // custom initialization code goes here

        \Yii::$app->homeUrl = Url::to(['/'.$this->id.'/product/index'],true);
    }
}
